/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GUI;

import java.awt.*;
import javax.swing.*;

/**
 *
 * @author littlechild
 */
public class CommonFunc {
    static void disposeFrame(JComponent a) {
        Container c=a.getParent();
        while(!(c instanceof Window)) {
            c=c.getParent();
        }
        ((Window)c).dispose();
    }
}
